package com.itheima.service.impl;  
 2  
 3 import com.domain.Book;  
 4 import com.mapper.BookMapper;  
 5 import com.itheima.service.BookService;  
 6 import org.springframework.beans.factory.annotation.Autowired;  
 7 import org.springframework.stereotype.Service;  
 8  
 9 @Service  
 10 public class BookServiceImpl implements BookService {  
 11 @Autowired  
 12 private BookMapper bookMapper;  
 13  
 14 @Override  
 15 public Book findBookById(Integer id) {  
 16 return bookMapper.findBookById(id);  
 17 }  
 18 } 